﻿using System;
using System.Activities.Presentation;
using System.ComponentModel;

namespace Headsight.BPMN2WF.GUI
{
    public class ViewModel : INotifyPropertyChanged
    {
        private bool _designerVisible = false;

        public bool DesignerVisible
        {
            get { return _designerVisible; }
            set
            {
                _designerVisible = value;
                NotifyPropertyChanged("DesignerVisible");
            }
        }

        public WorkflowDesigner WfDesigner { get; set; }

        #region NotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
        #endregion
    }
}
